<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/static/commons/taglibs.jsp"%>
<%@ include file="/static/commons/meta.jsp"%>
<%@ include file="/static/commons/ecside.jsp"%>
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>${title}</title>
		<script type="text/javascript" src="${ctx}/static/scripts/check_all.js"></script>
		<script type="text/javascript">
			function init(){
				parent.waiting_stop();
			}
			function changeStyle(obj){
			  	ec_showContent(obj,"700px");
			}
		</script>
	</head>
	<body onload="init()">
			<ec:table items="list" var="v" title="" width="100%"
				retrieveRowsCallback="process" filterRowsCallback="process"
				maxRowsExported="1000" pageSizeList="15,30,50,all" useAjax="false"
				rowsDisplayed="15" sortable="false" filterable="false"
				resizeColWidth="true" classic="true" minHeight="200"
				excludeParameters="checkAll,ID_,id"
				toolbarContent="extend status|pagejump|navigation|pagesize|refresh"
				action="${ctx}/myBsOrder/list">
				<ec:row style="text-align: center;">
					<ec:column property="ID_"
						title="<input type='checkbox' name='checkAll' onclick='check_all(this.form,this.form.id)'>"
						style="text-align:center;width:34px;" sortable="false">
						<input type='checkbox' value='${v.order_id}' name='id' id="id" data-flowid='${v.flow_id }'
							onclick="check_item(this.form,this.form.id)" ></input>
					</ec:column>
					<ec:column property="serial" title="序号" style="text-align:center;width:30px;">${GLOBALROWCOUNT}</ec:column>
					<ec:column property="order_id" title="订单编号" ><a href="javascript:void(0)" onclick="parent.view('${v.order_id }')">${v.order_id}</a></ec:column>
					<ec:column property="order_no" title="序号">${v.order_no}</ec:column>
					<ec:column property="cust_name" title="用户单位">${v.cust_name}</ec:column>
					<ec:column property="team_no" title="队号">${v.team_no}</ec:column>
					<ec:column property="receive_date" title="接收日期">${v.receive_date}</ec:column>
					<ec:column property="link_man" title="联系人">${v.link_man}</ec:column>
					<ec:column property="link_mobile" title="联系手机">${v.link_mobile}</ec:column>
					<ec:column property="link_phone" title="联系电话">${v.link_phone}</ec:column>
					<ec:column property="consignee_man" title="收件人">${v.consignee_man}</ec:column>
					<ec:column property="consignee_phone" title="收件人电话">${v.consignee_phone}</ec:column>
					<ec:column property="service_user" title="业务员">${v.service_user_}</ec:column>
					<ec:column property="flow_id" title="所在位置">
						<c:choose>
							<c:when test="${v.flow_id eq 0}">任务分配</c:when>
							<c:when test="${v.flow_id eq 1}">检测</c:when>
							<c:when test="${v.flow_id eq 6}">证书制作</c:when>
							<c:when test="${v.flow_id eq 9}">开票</c:when>
							<c:otherwise>--</c:otherwise>
						</c:choose>
					</ec:column>
					<ec:column property="order_status" title="接单状态">
						<c:choose>
							<c:when test="${v.order_status==1}">已接单</c:when>
							<c:when test="${v.order_status==2}">已分配</c:when>
							<c:when test="${v.order_status==3}">已完成</c:when>
						</c:choose>
				    </ec:column>
					<ec:column property="opt_date" title="操作时间">${v.opt_date}</ec:column>
				</ec:row>
			</ec:table>
	</body>
</html>